<template>
    <div class="reason">
    审核人:
    <el-input
    placeholder="审核人姓名"
    v-model="inputname">
    </el-input>
    原因:
    <el-input
    placeholder="驳回原因"
    v-model="inputreason">
    </el-input>
    <el-button @click="error">取消</el-button>
   <el-button type="primary" @click="success">确定</el-button>
    </div>
</template>

<script>
    export default {
       data() {
         return {
             inputreason:''
         }
       },
       methods:{
           error(){
               this.show=false;
               this.$message('取消输入');
           },
           success(){
               this.show=false;
               this.$message('你输入的内容是'+this.inputreason)
           }
       }
    }
</script>

<style>
    .reason{
        border: 1px solid #181623;
        position: absolute;
        width: 300px;
        height: 100px;
        top:50%;
        left:50%;
        margin-top: -150px;
        margin-left: -50px;
    }
</style>
